<template>
  <div :class="{ mycolor: isTrue }">
    ￥route.props.id : {{ $route.params.id }}
    <hr />
    id:{{ id }}
    <hr />
    <div>
      <router-link to="/video/1/a1">订单a1</router-link>
      <router-link to="/video/1/b2">订单b2</router-link>
      <router-link to="/video/1/c3">订单c3</router-link>
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
import { ref } from "vue";
export default {
  props: {
    id: {
      type: String,
      default: "",
    },
  },
  setup(pp) {
    let isTrue = ref(true);
    let id = pp.id;
    return {
      isTrue,
      id,
    };
  },
};
</script>

<style scoped>
.mycolor {
  width: 200px;
  height: 200px;
  background-color: rgb(0, 255, 149);
}
</style>